package com.bluesky.example.myaop.interceptors;

import java.lang.reflect.Method;
import java.util.logging.Logger;

import com.bluesky.example.myaop.MethodInterceptor;

public class LogInterceptor implements MethodInterceptor {
	private Logger logger = Logger.getLogger(this.getClass().getName());

	@Override
	public void Before(Object target, Method method, Object[] args) {

		logger.info("LogInterceptor method before..." + method);
	}

	@Override
	public void After(Object target, Method method, Object[] args) {
		logger.info("LogInterceptor method after..." + method);

	}
}
